We’re taking our chart from last session and making it interactive. We can do this simply by using ggplotly and our plot.
Specify text in the tool tip: \n is a hack to get a new line in the tooltip
Specify the interaction and what happens with dragmode = "pan"
Animation